package design.c1_chainOfResponsibility;

/**
 * 责任链测试类
 */
public class LeaveApprovalTest {

	public static void main(String[] args) {
		Leader leader1 = new ClassAdviser();
		Leader leader2 = new DepartmentHead();
		Leader leader3 = new Dean();
		leader1.setNext(leader2);
		leader2.setNext(leader3);
		leader1.handleRequest(8);
	}
}
